<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="navigation" class="org.academiadecodigo.bootcamp.fxlogin.utils.Navigation">
        <property name="controllers">
            <map>
                <entry key="LoginController" value-ref="loginController"/>
                <entry key="BootcampListController" value-ref="bootcampListController"/>
                <entry key="BootcampCadetListController" value-ref="bootcampCadetListController"/>
            </map>
        </property>
    </bean>

    <bean id="loginController" class="org.academiadecodigo.bootcamp.fxlogin.controller.LoginController">
        <constructor-arg ref="navigation"/>
        <property name="userService" ref="userService"/>
    </bean>

    <bean id="bootcampListController" class="org.academiadecodigo.bootcamp.fxlogin.controller.BootcampListController">
        <constructor-arg ref="navigation"/>
        <property name="bootcampService" ref="bootcampService"/>
    </bean>

    <bean id="bootcampCadetListController"
          class="org.academiadecodigo.bootcamp.fxlogin.controller.BootcampCadetListController">
        <constructor-arg ref="navigation"/>
        <property name="bootcampService" ref="bootcampService"/>
    </bean>

</beans>